package com.commodity.Dao;

import com.commodity.entity.Order;
import com.commodity.entity.OrderSearchBean;
import com.commodity.utils.PaginateInfo;

import java.util.List;

public interface OrderDao {
    List<Order> findAll(OrderSearchBean osb, PaginateInfo pi);

    int add(Order order);

    int deleteByIds(Integer[] intIds);

    Order findById(Integer id);

    int update(Order order);

    List<Order> findByCommodityId(String commodityIdFromCommodity, PaginateInfo pi);
}
